package com.feignfilter.backend1.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class FeignAspect {
    @Pointcut("@within(org.springframework.cloud.openfeign.FeignClient)")
    public void cutOffPoint() {
    }

   /* @Around(value = "cutOffPoint()")
    public Object doAroundAdvice(ProceedingJoinPoint proceedingJoinPoint){
        try {
            return proceedingJoinPoint.proceed();
        } catch (Throwable throwable) {
            throwable.printStackTrace();
        }
        return null;
    }

    @AfterReturning(value = "cutOffPoint()")
    public void doAccessCheck(){}*/
}
